<template>
	<view class="container">
		用户名：<input type="text" />
		密码：<input type="text" />
		<button type="default" @click="menuclick()">登录</button>
		<uni-link :href="href" :text="href"></uni-link>
		
		<form @submit="" @reset="">
			
			<button form-type="submit">Submit</button>
			<button form-type="reset">Reset</button>
		</form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				href: 'https://uniapp.dcloud.io/component/README?id=uniui',
				href1: '#',
				href2: './index2',
				title: '标题文字',
			}
		},
		methods: {
			menuclick: function(e) {
				//console.log(e);
				alert("登录");
				uni.navigateTo({
				                    url: './index2'
									});
			}
		},
		getHomeSlideFunc() {
			var _self = this;
			uni.request({
				url: 'http://www.weiganxia.cc/wp-content/themes/Beginning/api/homeSlide.php', //请求接口
				header: {
					'content-type': 'application/x-www-form-urlencoded', //自定义请求头信息
				},
				success: (res) => { //请求成功后返回
					// 请求成功之后将幻灯片数据赋值给homeSlide
					_self.homeSlide = res.data.post;
					/*
					uni.navigateTo({
					                    url: '../info/info?newsid='+newsid,
					                    success: res => {},
					                    fail: () => {},
					                    complete: () => {}
					*/
				}
			});
		},
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>
